package com.kangyi.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Blank
 * @since 2025-02-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("admin_user")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AdminUser implements Serializable {

    // 权限（1超级管理员 2养老院管理类 3养老院医护类）
    public static final Integer SUPER_ADMINISTRATOR = 1;
    public static final Integer NURSING_HOME_MANAGEMENT = 2;
    public static final Integer NURSING_HOME_MEDICAL_CARE = 3;

    //职位（1超级管理员 2院长 3副院长 4支部书记 5办公室主任 6医生 7护士 8护工 ）
    public static final Integer SUPER_ADMINISTRATORS = 1;

    public static final Integer DEAN = 2;

    public static final Integer VICE_DEAN = 3;

    public static final Integer BRANCH_SECRETARY = 4;

    public static final Integer OFFICE_DIRECTOR = 5;

    public static final Integer DOCTORS = 6;

    public static final Integer NURSES = 7;

    public static final Integer CAREGIVERS = 8;

    //状态（1启用，2禁用）
    public static final Integer ENABLED = 1;
    public static final Integer DISABLED = 2;



    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer nursingHomeId;

    private String name;

    private String age;

    private Integer gender;

    private String idCard;

    private String phone;

    private String password;

    private Integer permissions;

    private Integer position;

    private String headshot;

    private Integer status;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private Integer createUser;

    private Integer updateUser;


}
